// Fill out your copyright notice in the Description page of Project Settings.


#include "UI/GameUI/GameHUD.h"
#include "UI/GameUI/UMG/UI_MainScreen.h"

AGameHUD::AGameHUD()
{
	ConstructorHelpers::FClassFinder<UUI_MainScreen> MainScreen_BPClass(TEXT("/Game/UI/Game/WBP_MainScreen"));
	MainScreenClass = MainScreen_BPClass.Class;
}

void AGameHUD::BeginPlay()
{
	Super::BeginPlay();

	MainScreen = CreateWidget<UUI_MainScreen>(GetWorld(), MainScreenClass);
	MainScreen->AddToViewport();
}
